#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2025/1/17 11:36
# @Author : ZhengQL

import pytest
import os
import time

if __name__ == '__main__':
    time_name = "{}.html".format(time.strftime("%Y_%m_%d %H_%M_%S", time.localtime()))
    pytest.main(['-s', r"--html=test_reports/test{}".format(time_name), '--alluredir=./reports', "--no-summary"])

    cmd = 'allure generate ./reports -o ./reports/allure --clean'
    os.system(cmd)


    
